<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" href="/Public/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" href="/Public/admin/boot/Js/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="/Public/admin/boot/Css/thickbox.css" />
<link rel="stylesheet" href="/Public/admin/boot/jqui/jquery-ui.min.css" />
<link rel="stylesheet" href="/Public/admin/boot/Css/common.css" />

<script src="/Public/admin/boot/Js/jquery.min.js"></script>
<script src="/Public/admin/boot/Js/jquery.min.js"></script>
<script src="/Public/admin/boot/jqui/jquery-ui.min.js"></script>
<script src="/Public/admin/boot/jqui/jquery-ui-slide.min.js"></script>
<script src="/Public/admin/boot/jqui/jquery-ui-timepicker-addon.js"></script>
<script src="/Public/bootstrap/js/bootstrap.js"></script>
<script src="/Public/admin/boot/Js/common.js"></script>
<script charset="utf-8" src="/Public/admin/boot/Js/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="/Public/admin/boot/Js/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">
var ajax_load_area_url = "<?php echo URL('Admin/Area/ToPidGetArea');?>";
var MODULE_NAME 	= "<?php echo (MODULE_NAME); ?>";
var CONTROLLER_NAME = "<?php echo (CONTROLLER_NAME); ?>";

function b_add() {
	window.location.href="/index.php?m="+MODULE_NAME+"&c="+CONTROLLER_NAME+"&a=add";
}

function b_edit(id) {
	window.location.href="/index.php?m="+MODULE_NAME+"&c="+CONTROLLER_NAME+"&a=edit&id=" + id + '&ref=' + encodeURIComponent(window.location.href);
}

function b_del(id) {
	if(confirm('危险:确实要删除吗?')) {
		window.location.href="/index.php?m="+MODULE_NAME+"&c="+CONTROLLER_NAME+"&a=del&id=" + id ;
	}
}


$().ready(function(e) {
	$('.datepicker').datepicker({
		dateFormat: 'yy-m-d',
		showOn: 'both', 
		buttonImage: '/Public/admin/boot/Images/calendar.gif',
		buttonImageOnly: true});	

	$('.datetimepicker').datetimepicker({
	   dateFormat: 'yy-m-d',
	   timeFormat: 'hh:mm'
   });

	$(".tag i").click(function(){
		$item = $(this).html();
		$val  = $('#tag').val();
		if($val.indexOf($item) >= 0 ) {
			$val = $val.replace($item,"");
			$('#tag').val($val);
		} else {
			$('#tag').val($val + '' + $item);
		}
	});
		
	$("#btnoutput").click(function(){
		old = 	$("#search-form input[name=a]").val();
		$("#search-form input[name=a]").val('output');
		
		$("#search-form").attr("target","_blank").submit();
		
		$("#search-form input[name=a]").val(old);
		$("#search-form").attr("target","_self");
	});
	
		
});
</script>
</head>

<body>
  <div class="main">
  	<div class="sect">
    	
<?php echo table_header('Banner列表', array('新建'=>''));?>
<?php echo search_header();?>
<?php echo b_text('ID号','id',$id);?>
<?php echo b_text('标题','title%',$title);?>
<?php echo search_footer();?>
<?php echo table_data($list,"id:ID,title:标题,linkurl:跳转地址,imgurl|get_img_url:图片,id|get_comm_btn:操作");?>
<?php echo table_footer($page);?>

    </div>
  </div>